function validate() {
    $("#formEdit")
        .validate(
        {

            rules : {
                'name' : "required",
                'address.address' : "required",
                'countries.country' : "required",
                'regions.region' : "required",
                'cities.city' : "required"


            },
            messages : {
                'name' : "Name is required",
                'address.address': "Address is required",
                'countries.country' : "Country is required",
                'regions.region' : "Region is required",
                'cities.city' : "City is required"

            },
            errorElement : "label"

        })



}